package com.study.samsung.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//商品系列表实体类
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Succession {
    private Integer xid;//系列id
    private String  xname;//系类名称

    private List<Commodity> commodities;

    public Succession(Integer xid, String xname) {
        this.xid = xid;
        this.xname = xname;
    }

    public List<Commodity> getCommodities() {
        return commodities;
    }

    public void setCommodities(List<Commodity> commodities) {
        this.commodities = commodities;
    }
}
